﻿using Domain.Entity.System_operation;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_operation
{
    public class Receipt_meterConfiger : IEntityTypeConfiguration<Receipt_meter>
    {
        public void Configure(EntityTypeBuilder<Receipt_meter> builder)
        {

            builder.ToTable(nameof(Receipt_meter));
            builder.HasKey(e => e.Receipt_id);
            builder.Property(e => e.Receipt_id).HasColumnType("bigint");
            builder.Property(e => e.Courier_companies).HasColumnType("varchar(64)");
            builder.Property(e => e.Mailing_number).HasColumnType("varchar(64)");
            builder.Property(e => e.Mailing_time).HasColumnType("DateTime");
            builder.Property(e => e.Receipt).HasColumnType("varchar(128)");
            builder.Property(e => e.Receipt_type).HasColumnType("int");
            builder.Property(e => e.Receipt_num).HasColumnType("int");
            builder.Property(e => e.Ord_id).HasColumnType("int");
            builder.Property(e => e.Sign_id).HasColumnType("int");
        }
    }
}
